Closing the File Queue and INF File

After the queue has finished committing its operations, it should be closed so that resources allocated to the queue can be released.

SetupCloseFileQueue(MyQueue);             //close file queue

 

Where MyQueue is the handle to the queue created by SetupOpenFileQueue.

If a default context was initiated for use by the default callback routine, it should also be terminated by calling SetupTermDefaultQueueCallback3TV136.

SetupTermDefaultQueueCallback(Context);   //release default context
                                          //  resources

 

In the example Context is a pointer to the structure returned by the SetupInitDefaultQueueCallback function.

When access to the INF information is no longer needed, call the SetupCloseInfFile function to free system resources.

SetupCloseInfFile(MyInf);                 //close inf file

 

MyInf is the handle to the open INF file returned by the SetupOpenInfFile function.